-- GENERATED SPELL FOR [Den Mother] --


function spell0_6788(pUnit, Event) --@Ravage,n/a--
pUnit:FullCastSpellOnTarget(3242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6788', 2310, 1)
end

function Sorts_6788(pUnit, Event)
local choix_sorts_6788 = math.random(0, 0)
if choix_sorts_6788 == 0 then
pUnit:RegisterEvent('spell0_6788', 1, 1)
end
end

function mob6788_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6788', math.random(1500, 3000), 1)
end

function mob6788_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6788_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6788_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6788, 1, 'mob6788_Action')
RegisterUnitEvent(6788, 2, 'mob6788_Leave')
RegisterUnitEvent(6788, 3, 'mob6788_Kill')
RegisterUnitEvent(6788, 4, 'mob6788_Die')
